import request from '@/config/axios'

interface PageVo {
  pageNo: number
  pageSize: number
  name?: string
  
}
interface TplPageVo extends PageVo {
  reviewStatus: number | string // "审核状态 0待审核 1 审核通过(所有租户都审核通过)")
}
// 获取模板分页
export const getTplPage = (params: TplPageVo) => {
  return request.get({ url: '/ctr/tpl/page',params })
}

// 模板审核日志
export const operatorLog = (params: PageVo) => {
  return request.get({ url: '/ctr/operator-log/page',params })
}
interface TplReviewVo {
  reviewStatus: string | number  //审核状态
  tplNo: string | number //模板编号
  remark?: string  // 备注
}
// 模板审核
export const tplReview = (data: TplReviewVo) => {
  return request.post({ url: '/ctr/tpl/review',data })
}
// 模板预览
export const tplPreview = (data: {
  tplId: string | number
}) => {
  return request.post({ url: '/ctr/tpl/setting/preview',data })
}